﻿namespace MicroCloud.Utils
{
    /// <summary>
    /// 操作结果基类接口
    /// </summary>
    public interface IResultBase<TResultType, TData>
    {
        /// <summary>
        /// 获取或设置 结果类型
        /// </summary>
        TResultType ResultType { get; set; }

        /// <summary>
        /// 获取或设置 返回消息
        /// </summary>
        string Message { get; set; }

        /// <summary>
        /// 获取或设置 结果数据
        /// </summary>
        TData Data { get; set; }

    }

    /// <summary>
    /// 操作结果基类接口
    /// </summary>
    /// <typeparam name="TResultType"></typeparam>
    public interface IResultBase<TResultType> : IResultBase<TResultType, object>
    { }
}
